import request from '@/utils/requestA'

export default {
    approval(borrowInfoApproval) {
        return request({
            url: `/borrowInfo/approval`,
            method: 'post',
            data: borrowInfoApproval
        })
    },
    pageBorrowInfo(search) {
        return request({
            url: '/borrowInfo',
            method: 'get',
            params: {
                pageNum: search.pageNum,
                limit: search.limit
            }
        })
    },
    saveBorrowInfo(borrowInfo) {
        return request({
            url: `/borrowInfo`,
            method: 'post',
            data: borrowInfo
        })
    }
}